# Top-most EditorConfig file
root = true

##################################################
# Global settings for all files
##################################################
[*]
# Set the indentation style to spaces (alternatively, use "tab")
indent_style = space

# Define the number of spaces per indentation level
indent_size = 4

# Specify the number of spaces that a tab character represents
tab_width = 4

# Set the line ending style:
# lf   - Unix and Linux style
# crlf - Windows style
# cr   - Classic Mac OS style
end_of_line = lf

# Specify the file charset; common values include utf-8, latin1, utf-16be, utf-16le
charset = utf-8

# Remove any whitespace characters preceding newline characters
trim_trailing_whitespace = true

# Ensure files end with a newline
insert_final_newline = true

##################################################
# Settings specific to Kotlin files (*.kt and *.kts)
##################################################
[*.{kt,kts}]
# Maximum allowed line length for Kotlin files
max_line_length = 120

# ktlint-specific: Number of spaces to use for line continuations
continuation_indent_size = 4

# ktlint-specific: Comma-separated list of rules to disable.
# Example rules: no-wildcard-imports, import-ordering, etc.
disabled_rules = no-wildcard-imports, import-ordering

# ktlint-specific: Enable experimental rules (true/false)
experimental = false

# ktlint-specific: Enable Android Kotlin Style guidelines (true/false)
android = false
